package example_07.demo_02;

public class JavaTeacher {
    private String name;
    private int year;
    private String content;
    private String type;
    public JavaTeacher(){
        this.type = "Java";

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void jiangke(){
        System.out.println("大家好，我是"+name+",工作"+year+"年，从事"+type+"方向");
        System.out.println("使用Idea开始讲课");
    }
}
